﻿namespace GameLib.Games.Components
{
    class GameCollection<T> : AbstractGameCollection<T>, IGameCollection<T> where T : IGame<IMod>
    {
        public GameCollection()
        {
        }

        protected override IGameCollection<T> CreateGameCollection()
        {
            return new GameCollection<T>();
        }

        protected override T CreateGame(string id)
        {
            return (T)(IGame<IMod>)new BasicGame<IMod>();
        }
    }
}